cmake_minimum_required(VERSION 3.16)

project(testfakuangminstd LANGUAGES CXX)

enable_testing()

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Test)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Test)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(testfakuangminstd
    main.cpp
    recheckcansendweichitest.h recheckcansendweichitest.cpp
    ../../compare/cholidayset.cpp ../../compare/cholidayset.h ../../compare/cjgboxdata.cpp ../../compare/cjgboxdata.h ../../compare/cjgboxprocessdata.cpp ../../compare/cjgboxprocessdata.h ../../compare/cjgboxset.cpp ../../compare/cjgboxset.h ../../compare/cjgdepandency.cpp ../../compare/cjgdepandency.h ../../compare/cjgorder.cpp ../../compare/cjgorder.h ../../compare/cjgorderprocess.cpp ../../compare/cjgorderprocess.h ../../compare/cjgposition.cpp ../../compare/cjgposition.h ../../compare/cjgpositionmanager.cpp ../../compare/cjgpositionmanager.h ../../compare/cjgprocessplan.cpp ../../compare/cjgprocessplan.h ../../compare/cjgprocessschedule.cpp ../../compare/cjgprocessschedule.h ../../compare/cordermanager.cpp ../../compare/cordermanager.h ../../compare/cprescheduling.cpp ../../compare/cprescheduling.h ../../compare/cschdatacollector.cpp ../../compare/cschdatacollector.h ../../compare/cschprocessposition.cpp ../../compare/cschprocessposition.h ../../compare/csysparamdata.cpp ../../compare/csysparamdata.h ../../compare/ctech.cpp ../../compare/ctech.h ../../compare/ctechmanager.cpp ../../compare/ctechmanager.h ../../compare/cworkertech.cpp ../../compare/cworkertech.h ../../compare/cworktime.cpp ../../compare/cworktime.h ../../compare/global.cpp ../../compare/global.h
    recheckcansendminstdtest.h recheckcansendminstdtest.cpp
    isallundoinlibandfewtest.h isallundoinlibandfewtest.cpp
    recheckcansendquanbuzailibtest.h recheckcansendquanbuzailibtest.cpp)
add_test(NAME testfakuangminstd COMMAND testfakuangminstd)

target_link_libraries(testfakuangminstd PRIVATE Qt${QT_VERSION_MAJOR}::Test)